﻿
using System ;

using MskEdit.Sdk ;
using MskEdit.Dxf.Representation ;


namespace MskEdit.Dxf.Model
{

    public class DxfClass : DxfStructBase
    {
        private static DxfSignature         signature_      = new DxfSignature( "0", "CLASS", "0", "" ) ;
        private static ConstructorHandler   constructor_    = (a, b) => { return new DxfClass(a, b) ; } ;


        private DxfClass( string[] allLines, SdkSubrange subrange ) : base ( allLines, subrange ) {
        }
        
        
        public static DxfClass TryFrom( string[] allLines, ref int lineNo, DxfClass fallbackValue ) {
            return (DxfClass) DxfStructBase.TryConstruct( allLines, ref lineNo, signature_, constructor_, fallbackValue ) ;
        }


        public string Name {
            get { return this.TryFindFirstValue( "1", "" ) ; }
        }

    }
}
